//
//  XMSearchNavView.h
//  XunMi
//
//  Created by MacBook on 2024/4/28.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, XMSearchType) {
    XMSearchByName = 1,
    XMSearchByCity,
};

NS_ASSUME_NONNULL_BEGIN

@interface XMSearchNavView : UIView
@property (weak, nonatomic) IBOutlet UITextField *textField;

@property (nonatomic, assign) XMSearchType type;

- (void)setupChangeBlock:(void (^)(void))changeBlock
             searchBlock:(void (^)(XMSearchType type, NSString *text))searchBlock
              clearBlock:(void (^)(void))clearBlock;


@end

NS_ASSUME_NONNULL_END
